Add tool to configure tree for building in Windows/Cygwin.
authorrobertl <robertl>
Sun, 6 Sep 2009 20:15:43 +0000 (20:15 +0000)
committerrobertl <robertl>
Sun, 6 Sep 2009 20:15:43 +0000 (20:15 +0000)
tools/win-qtcreator-config [new file with mode: 0755]

diff --git a/tools/win-qtcreator-config b/tools/win-qtcreator-config
new file mode 100755 (executable)
index 0000000..164589b
--- /dev/null
@@ -0,0 +1,12 @@
+# Script to configure cross build suitable for inclusion in Earth.
+# Call from mingw under Windows
+CHAIN=/cygdrive/c/Qt/2009.03/mingw
+
+S=.
+CFLAGS="$CFLAGS -I $S/mingw/include/" \
+CFLAGS="$CFLAGS -I $S/mingw/include/ddk" \
+CC=$CHAIN/bin/gcc \
+$S/configure  --host=i386-mingw32  \
+        --with-expathdr=$S/mingw/include \
+        --with-libexpat=$S/mingw/lib
+